
// <copyright file="DbTableAttribute.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The db table attribute.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Data.Dynamic
{
    using System;

    /// <summary>
    /// The db table attribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class DbTableAttribute : Attribute
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="DbTableAttribute"/> class.
        /// </summary>
        /// <param name="tableName">
        /// The table name.
        /// </param>
        public DbTableAttribute(string tableName)
        {
            this.TableName = tableName;
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        /// Gets the table name.
        /// </summary>
        public string TableName { get; private set; }

        #endregion Public Properties
    }
}